<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="RobotIDE">
<style type="text/css">
html {
font-family: Arial,Helvetica,sans-serif;
background-color: white;
color: black;
}
p {
max-width: 60em;
}
table {
border-collapse: collapse;
empty-cells: show;
margin: 1em 0em;
border: 0.1em solid black;
}
th, td {
border-style: solid;
border-width: 0.05em 0.1em;
border-color: black;
padding: 0.1em 0.2em;
height: 1.5em;
}
th {
background-color: rgb(192, 192, 192);
color: black;
border-width: 0.1em;
font-weight: bold;
text-align: center;
text-transform: capitalize;
letter-spacing: 0.1em;
}
/* Widths of named columns */
col.name {
width: 10em;
}
.action, .value, .arg {
width: 15em;
}
/* Properties for the name column - td:first-child should work in CSS 2.1 avare browsers (tested in Firefox)
- col.name is against specs but works in IE
*/
td:first-child, col.name {
background-color: rgb(240, 240, 240);
text-transform: capitalize;
letter-spacing: 0.1em;
}
/* required for IE */
th {
font-style: normal;
}
</style><title>Listener Interface</title></head>
<body>
<h1>Listener Interface</h1>
<table border="1">
<colgroup span="99"><col class="name"><col class="value" span="4"></colgroup>
<tbody>
<tr>
<th>Setting</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
</tr>
<tr>
<td>Default Tags</td>
<td>pybot</td>
<td>jybot</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Force Tags</td>
<td>regression</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Suite Setup</td>
<td>Run Tests</td>
<td>--listener OldListenAll<br>--listener OldListenAll:${TEMPDIR}${/}${ALL_FILE2}<br>--listener old_module_listener<br>
--listener
old_listeners.ListenSome <br>
--listener OldJavaListener<br>
--listener old_listeners.InvalidMethods</td>
<td>misc${/}pass_and_fail.html</td>
<td></td>
</tr>
<tr><td>Suite Teardown</td><td>Remove Listener Files</td><td></td><td></td><td></td></tr><tr>
<td>Resource</td>
<td>listener_resource.txt</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<table border="1">
<colgroup span="99"><col class="name"><col class="value" span="4"></colgroup>
<tbody>
<tr>
<th>Variable</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<table border="1">
<colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
<tbody>
<tr>
<th>Test Case</th>
<th>Action</th>
<th>Argument</th>
<th>Argument</th>
<th>Argument</th>
</tr>
<tr>
<td><a name="test_ListenAll">Listen All</a></td>
<td>[Documentation]</td>
<td>Listener listening all methods. Method names with
underscore.</td>
<td></td>
<td></td>
</tr>
<tr><td></td><td>Check Listen All File</td><td>${ALL_FILE}</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Listen All With Arguments to Listener</td><td>Check Listen All File</td><td>${ALL_FILE2}</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Listen All Module&nbsp;Listener</td><td>Check Listen All File</td><td>${MODULE_FILE}</td><td></td><td></td></tr><tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><a name="test_ListenSome">Listen Some</a></td>
<td>[Documentation]</td>
<td>Only listening some methods. Method names with
camelCase.</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>@{expected} =</td>
<td>Create List</td>
<td>Pass</td>
<td><br>
</td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>Fail</td>
<td>${SUITE_MSG}</td>
<td></td>
</tr>
<tr>
<td></td>
<td>Check Listener File</td>
<td>${SOME_FILE}</td>
<td>@{expected}</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><a name="test_JavaListener">Java Listener</a></td>
<td>[Documentation]</td>
<td>Listener listening all methods implemented with Java</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>[Tags]</td>
<td>jybot</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>@{expected} =</td>
<td>Create List</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START SUITE: Pass And Fail 'Some tests here'</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: My Keyword [Suite Setup]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: BuiltIn.Log [Hello says "\${who}"!\${LEVEL1}]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: BuiltIn.Log [Debug message\${LEVEL2}]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START TEST: Pass '' [forcepass]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: My Keyword [Pass]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: BuiltIn.Log [Hello says "\${who}"!\${LEVEL1}]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: BuiltIn.Log [Debug message\${LEVEL2}]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>END TEST: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START TEST: Fail 'FAIL Expected failure' [failforce]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: My Keyword [Fail]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: BuiltIn.Log [Hello says "\${who}"!\${LEVEL1}]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: BuiltIn.Log [Debug message\${LEVEL2}]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>START KW: BuiltIn.Fail [msg=Expected failure]</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>END TEST: FAIL: Expected failure</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>END SUITE: FAIL: 2 critical tests, 1 passed, 1 failed</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>2 tests total, 1 passed, 1 failed</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>Output (java):&nbsp;output.xml</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>The End</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>Check Listener File</td>
<td>${JAVA_FILE}</td>
<td>@{expected}</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><a name="test_InvalidArgsForListenerMethod">Invalid
Args For Listener Method</a></td>
<td>Check Stderr Contains</td>
<td>[ ERROR ]</td>
<td>Calling 'start_suite' method of listener
'old_listeners.InvalidMethods' failed:</td>
<td>TypeError: start_suite() takes</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><a name="test_ListenerMethodRaisingException">Listener
Method Raising Exception</a></td>
<td>Check Stderr Contains</td>
<td>[ ERROR ]</td>
<td>Calling 'end_suite' method of listener
'old_listeners.InvalidMethods' failed:</td>
<td>Here comes an exception!</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<table border="1">
<colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
<tbody>
<tr>
<th>Keyword</th>
<th>Action</th>
<th>Argument</th>
<th>Argument</th>
<th>Argument</th>
</tr>
<tr><td>Check Listen All File</td><td>[ Arguments ]</td><td>${filename}</td><td></td><td></td></tr><tr>
<td></td>
<td>@{expected} =</td>
<td>Create List</td>
<td><br>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>SUITE START: Pass And Fail 'Some tests here'</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: My Keyword ['Suite Setup']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: BuiltIn.Log ['Hello says "\${who}"!',
'\${LEVEL1}']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: BuiltIn.Log ['Debug message', '\${LEVEL2}']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>TEST START: Pass '' ['force', 'pass']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: My Keyword ['Pass']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: BuiltIn.Log ['Hello says "\${who}"!',
'\${LEVEL1}']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: BuiltIn.Log ['Debug message', '\${LEVEL2}']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>TEST END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>TEST START: Fail 'FAIL Expected failure' ['fail',
'force']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: My Keyword ['Fail']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: BuiltIn.Log ['Hello says "\${who}"!',
'\${LEVEL1}']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: BuiltIn.Log ['Debug message', '\${LEVEL2}']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: PASS</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW START: BuiltIn.Fail ['msg=Expected failure']</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>KW END: FAIL</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>TEST END: FAIL Expected failure</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>SUITE END: FAIL 2 critical tests, 1 passed, 1 failed</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>2 tests total, 1 passed, 1 failed</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>Output:&nbsp;output.xml</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>Closing...</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>Check Listener File</td>
<td>${filename}</td>
<td>@{expected}</td>
<td></td>
</tr>


<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</body></html>
